package com.bbms.entity;

import java.util.List;

import javax.persistence.Entity;

/**
 * @author Administrator
 * 分页实体
 */
@Entity
public class Page {
	// 当前页
	private int pageNo;
	// 每页条数
	private int pageSize;
	// 总记录数
	private int total;
	// 当前页条数
	private List<?> rows;
	
	public Page() {
		super();
	}

	public Page(int pageNo, int pageSize, int total, List<?> rows) {
		super();
		this.pageNo = pageNo;
		this.pageSize = pageSize;
		this.total = total;
		this.rows = rows;
	}
	
	public int getPageNo() {
		return pageNo;
	}

	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}

	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getTotal() {
		return total;
	}
	public void setTotal(int total) {
		this.total = total;
	}

	public List<?> getRows() {
		return rows;
	}

	public void setRows(List<?> rows) {
		this.rows = rows;
	}

	@Override
	public String toString() {
		return "Page [pageNo=" + pageNo + ", pageSize=" + pageSize + ", total=" + total + ", rows=" + rows + "]";
	}
	
}
